home *** CD-ROM | disk | FTP | other *** search
/ Sierra's Sneak Peeks 1993 / Sierra Sneak Peeks 1993.iso / tsn / install.scr < prev    next >
Text File  |  1993-03-18  |  5KB  |  231 lines

  1. echo Setting up the directory for TSN
  2. godir %1:%6 CantCreate
  3. del *.so
  4. del *.to
  5. del *.p56
  6. del *.v56
  7. del *.snd
  8. del resource.*
  9. del *.drv
  10. del *.dll
  11. del *.exe
  12. del hostaddr.tim
  13. rem del *.bbs
  14. godir %1:%6\SL CantSL
  15. del *.so
  16. del *.to
  17. del *.p56
  18. del *.v56
  19. del *.snd
  20. del *.pbm
  21. del resource.*
  22. del *.drv
  23. del *.dll
  24. del *.exe
  25. del *.CFG
  26. godir %1:%6\LL CantLL
  27. del *.so
  28. del *.to
  29. del *.p56
  30. del *.v56
  31. del *.snd
  32. del resource.*
  33. del *.drv
  34. del *.dll
  35. del *.exe
  36. del *.CFG
  37. godir %1:%6\BARON CantBaron
  38. del volume.*
  39. del *.exe
  40. godir %1:%6\YSERBIUS CantYserbius
  41. godir %1:%6\YSERBIUS\SAVE CantYserbius
  42. copy ..\mychars.dat /q
  43. copy ..\automaps.dat /q
  44. godir %1:%6\YSERBIUS CantYserbius
  45. del *.*
  46. godir %1:%6
  47.  
  48. rem    Is there space?
  49. space %1: 8500 NoSpace
  50. if errorlevel 1 goto NoSpace
  51.  
  52. echo Copying files...
  53.  
  54. copy    %2:READ.ME /q
  55. echo    Installing Re-Install
  56. copy    %2:INSTTSNC.EXE INSTTSN.EXE
  57. rem copy    %2:puff.exe
  58. copy    %2:INSTALL.BIT INSTALL.BAT
  59. copy    %2:LSCIGET.EXE
  60. copy    %2:INSTALL.TXT
  61. copy    %2:DRIVERS.TXT
  62. copy    %2:INSTALL.HLP
  63. copy    %2:INSTTSN.TXT
  64. copy    %2:INSTTSN.HLP
  65. copy    %2:MODEM.TXT
  66. copy    %2:PHONE.TXT
  67. copy    %2:RBJOY.EXE
  68.  
  69. echo    Installing TSN executive
  70. copy    %2:TSNEXEC.EXE
  71. rem echo Decompressing executive
  72. rem puff    /D _SNEXEC.EXE
  73. copy    %2:TSN.PRG
  74. copy    %2:MODEM.DRV
  75. copy    %2:NOBRK.DRV
  76. copy    %2:TSN.ICO
  77. copy    %2:TSN.PIF
  78. copy    %2:PATCHPIF.EXE
  79. patchpif %1 %6 > nul
  80. copy    %2:HOSTADDR
  81. echo    @echo off>TSN.BAT
  82. echo    tsnexec DEFAULT>>TSN.BAT
  83.  
  84. echo    Installing SCI and Drivers
  85. copy    %2:LSCITV.EXE
  86. rem echo Decompressing interpreter
  87. rem puff    /D _SCITV.EXE
  88. copy    %2:GAME.CFG
  89. copy  %2:LAND.CFG
  90. copy    %2:LLSYSTEM.DAT
  91. copy    %2:TWEAKER.DRV
  92. copy    %2:MT32.DRV
  93. copy    %2:MT32.NL
  94. copy    %2:ADL.DRV
  95. copy    %2:SNDBLAST.DRV
  96. copy    %2:TANDYXL.DRV
  97. copy    %2:IBMKBD.DRV
  98. copy    %2:_LNULL.DLL
  99. rem echo Decompressing null-dll
  100. puff    /D _LNULL.DLL
  101. copy    %2:VGA320.DRV /q
  102. copy    %2:_RAPH256.DLL /q
  103. rem echo Decompressing graph256 dll
  104. puff    /D _RAPH256.DLL
  105. copy    %2:EGA640.DRV /q
  106.  
  107. echo %3>lsci.cfg
  108. echo %4>%1:%6\tsn.cfg
  109. echo %5>%1:%6\PASS_SET.DTA
  110.  
  111. rem Get the volumes installed from their blender file
  112. rem ALSO round-about method for finding out installed video config
  113.  
  114. echo    Setting Up Video Drivers
  115. echo  dll = graph256.dll>>lsci.cfg
  116. echo  dll = nlnull.dll>>lsci.cfg
  117. echo  pathStr = .\>>lsci.cfg
  118. echo  hostID = SIERRA>>lsci.cfg
  119. echo  InterpSize = 174>>lsci.cfg
  120.  
  121. rem copy the CC resources
  122. copy    %2:RESOURCE.MAP 
  123. copy    %2:RESOURCE.001 
  124. rem copy    %2:RESOURCE.002
  125.  
  126. echo Installing TSN Documentation
  127. copy    %2:_ENERAL.DOC
  128. copy    %2:_IERRLND.DOC
  129. copy    %2:_ARRYLND.DOC
  130. copy    %2:_SERBIUS.DOC
  131. puff    /D _*.DOC
  132.  
  133. echo    General.doc>doc.lst
  134. echo    Sierrlnd.doc>>doc.lst
  135. echo    Larrylnd.doc>>doc.lst
  136. echo    Yserbius.doc>>doc.lst
  137.  
  138. rem start the de-archiver
  139. defuse %2 %1 part %6
  140.  
  141. godir %1:%6
  142.  
  143. rem Copy any patches which have found their way onto the final disk
  144. godir %1:%6\SL
  145. copy     %2:\slPatch\*.* /q
  146. godir %1:%6\LL
  147. copy     %2:\llPatch\*.* /q
  148. godir %1:%6\yserbius
  149. copy     %2:\ysPatch\*.* /q
  150. godir %1:%6
  151. copy     %2:\ccPatch\*.* /q
  152.  
  153. echo Uncompressing compressed files...
  154. godir %1:%6
  155. if exist _*.* puff /D _*.*
  156. godir %1:%6\SL
  157. if exist _*.* puff /D _*.*
  158. godir %1:%6\LL
  159. if exist _*.* puff /D _*.*
  160. godir %1:%6\BARON
  161. if exist _*.* puff /D _*.*
  162. godir %1:%6\YSERBIUS
  163. if exist _*.* puff /D _*.*
  164.  
  165. rem Copy RBJOY.EXE from CC directory to BARON directory
  166. copy ..\rbjoy.exe /q
  167.  
  168. rem Restore saved Yserbius character info
  169. copy save\*.dat /q
  170.  
  171. rem Build sl and ll lsci.cfg files
  172. godir %1:%6
  173.  
  174. echo  pathStr = ..\>>sl\lsci.cfg
  175. lsciget lsci.cfg sl\lsci.cfg -t video ..\ keyboard ..\ music ..\ dll ..\ >NUL
  176. lsciget lsci.cfg sl\lsci.cfg mouseDrv prefix id modem >NUL
  177. echo  hostID = SIERRA>>sl\lsci.cfg
  178. echo  InterpSize = 174>>sl\lsci.cfg
  179.  
  180. echo  pathStr = ..\>>ll\lsci.cfg
  181. lsciget lsci.cfg ll\lsci.cfg -t video ..\ keyboard ..\ music ..\ dll ..\ >NUL
  182. lsciget lsci.cfg ll\lsci.cfg mouseDrv prefix id modem >NUL
  183. echo  hostID = SIERRA>>ll\lsci.cfg
  184. echo  InterpSize = 174>>ll\lsci.cfg
  185.  
  186. cls
  187. echo Installation complete.
  188. echo 
  189. echo 
  190. echo Type "cd %6"
  191. echo      "TSN"
  192. echo   to run The Sierra Network
  193. echo 
  194. end
  195.  
  196. :NoSpace
  197. cls
  198. echo There is not enough space on %1: to install TSN!
  199. echo 8.5 Megabytes are required. Delete some unused stuff.
  200. pause
  201. end
  202.  
  203. :CantCreate
  204. Alert Unable to create %1:%6
  205. cls
  206. echo    There may already be a file called %1:%6.
  207. echo
  208. echo    If there is, rename it or install TSN on another hard
  209. echo    disk partition.
  210. echo
  211. pause
  212. end
  213.  
  214. :CantSL
  215. Alert Unable to create %1:%6\SL
  216. end
  217.  
  218. :CantLL
  219. Alert Unable to create %1:%6\LL
  220. end
  221.  
  222. :CantYserbius
  223. Alert Unable to create %1:%6\YSERBIUS
  224. end
  225.  
  226. :CantBaron
  227. Alert Unable to create %1:%6\BARON
  228. end
  229.  
  230. 
  231.